export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  menuWidth: 80,
  labelWidth: 150,
  menu: false,
  refreshBtn:false,
  columnBtn:false,
  height: '40vh',
  "column": [
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "车间",
      "prop": "workshopName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "产线",
      "prop": "realityLineName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "品号",
      "prop": "itemCode",
      "span": 12,
      overHidden:true,
    },
    {  label: '尺寸测量工位',
      children: [
	  {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "产品编号",
      "prop": "productSn",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "开始加工时间",
      "prop": "startTime",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "结束加工时间",
      "prop": "endTime",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "状态",
      "prop": "status",
      "span": 12,
      html:true,
      formatter:(val) => {
        if(val.status===1){
          return '<b style="color:green">良品<b/>'
        }else {
          return '<b style="color:red">不良品<b/>'
        }
      }
    },

	  {
      "type": "input",
      "label": "MT1_2FA长度",
      "prop": "mt12faLength",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_FA长度",
      "prop": "mt1FaLength",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT2_1FA长度",
      "prop": "mt21faLength",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_2FA长度base",
      "prop": "mt12faLengthBase",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_2FA长度down",
      "prop": "mt12faLengthDown",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_2FA长度up",
      "prop": "mt12faLengthUp",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_FA长度base",
      "prop": "mt1FaLengthBase",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_FA长度down",
      "prop": "mt1FaLengthDown",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT1_FA长度up",
      "prop": "mt1FaLengthUp",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT2_1FA长度base",
      "prop": "mt21faLengthBase",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT2_1FA长度down",
      "prop": "mt21faLengthDown",
      "span": 12
    },
	  {
      "type": "input",
      "label": "MT2_1FA长度up",
      "prop": "mt21faLengthUp",
      "span": 12
    },
]}
  ]
}
export const tableAloneOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  menuWidth: 80,
  labelWidth: 150,
  menu: false,
  refreshBtn:false,
  columnBtn:false,
  "column": [
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "车间",
      "prop": "workshopName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "产线",
      "prop": "realityLineName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "品号",
      "prop": "itemCode",
      "span": 12,
      overHidden:true,
    },
    {  label: '尺寸测量工位',
      children: [
        {
          "type": "input",
          "label": "设备编号",
          "prop": "deviceSn",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "产品编号",
          "prop": "productSn",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "开始加工时间",
          "prop": "startTime",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "结束加工时间",
          "prop": "endTime",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "状态",
          "prop": "status",
          "span": 12,
          html:true,
          formatter:(val) => {
            if(val.status===1){
              return '<b style="color:green">良品<b/>'
            }else {
              return '<b style="color:red">不良品<b/>'
            }
          }
        },

        {
          "type": "input",
          "label": "MT1_2FA长度",
          "prop": "mt12faLength",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_FA长度",
          "prop": "mt1FaLength",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT2_1FA长度",
          "prop": "mt21faLength",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_2FA长度base",
          "prop": "mt12faLengthBase",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_2FA长度down",
          "prop": "mt12faLengthDown",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_2FA长度up",
          "prop": "mt12faLengthUp",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_FA长度base",
          "prop": "mt1FaLengthBase",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_FA长度down",
          "prop": "mt1FaLengthDown",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT1_FA长度up",
          "prop": "mt1FaLengthUp",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT2_1FA长度base",
          "prop": "mt21faLengthBase",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT2_1FA长度down",
          "prop": "mt21faLengthDown",
          "span": 12
        },
        {
          "type": "input",
          "label": "MT2_1FA长度up",
          "prop": "mt21faLengthUp",
          "span": 12
        },
      ]}
  ]
}
